import {createStore, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import rootReducer from '../reducer/rootReducer'

let createStoreWithMiddleware = applyMiddleware(thunk, createLogger)(createStore);
let store = createStoreWithMiddleware(rootReducer);

export default store;

